package me.zhengjie.modules.service.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.ApiBatch;
import me.zhengjie.modules.repository.ApiBatchMapper;
import me.zhengjie.modules.service.ApiBatchService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ApiBatchService")
@RequiredArgsConstructor
public class ApiBatchServiceImpl implements ApiBatchService {

    private final ApiBatchMapper apiBatchMapper;

    @Override
    public int createApiBatch(ApiBatch apiBatch) {
        return apiBatchMapper.insertApiBatch(apiBatch);
    }

    @Override
    public ApiBatch queryApiBatchByApiId(Long apiId) {
        return apiBatchMapper.selectApiBatchByApiId(apiId);
    }
}
